from django.shortcuts import render_to_response
from django.http import HttpResponse
from timetracker.app.models import *

def api_home(request):
    test = "null"
    if  request.method == 'POST':
        test = request.POST.get("name")
    return HttpResponse("All this shit added %s " % test)

#    return render_to_response("This is a home of API")
def get_user_chronoses(request):
    return HttpResponse("Ololo")

## ------------------------------------------------------------------------------
# add new chronos
def add_chronos(request):
    test = "null"
    if  request.method == 'POST':
        test = request.POST.get("name")
        
    return HttpResponse("All this shit added %s " % test)
# remove chronos
# update chronos name

# activity was choosed as active